import { RouteRecordRaw } from 'vue-router';

// 主页面下的操作窗体
export const homeRoutes: Array<RouteRecordRaw> = [
    {
        path: 'home',
        name: 'home',
        component: () => import('@/views/home/index.vue'),
        meta: {
            title: 'home',
            icon: 'home',
        }
    },{
        path: 'websocket',
        name: 'websocket',
        component: () => import('@/views/websocket/index.vue'),
        meta: {
            title: 'websocket',
            icon: 'sign',
        },
    },
]

export const routes = [
    {
        path: '/',
        redirect: '/home',
        children: homeRoutes
    },
];